package com.nulldev.util.graphics.renderIt.renderer.swing.nitrous;

import java.awt.peer.ComponentPeer;

/**
 * A renderer that uses Java's GDI support.
 *
 * @author Quantum
 * @author Tudor
 */
public class GDIRenderManager extends AbstractRenderManager {
	/**
	 * Constructs a GDI renderer for the {@link java.awt.Panel} whose peer is given.
	 *
	 * @param peer the peer of the {@link java.awt.Panel} for which the renderer is
	 *             constructed.
	 */
	public GDIRenderManager(ComponentPeer peer) {
		super(peer, "sun.awt.windows.WComponentPeer", "sun.java2d.windows.GDIWindowSurfaceData");
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected String getName() {
		return "GDI";
	}
}